package models

import (
	"time"
)

type LogUser struct {
	ID 				int				`gorm:"primary_key"`
	UserName  		string			`gorm:"size:64;not null"`
	Req             string			`gorm:"size:64"`
	ReqMenu			string			`gorm:"size:64"`
	Status			string			`gorm:"size:32"`
	ReqData 		string			`gorm:"type:text;force"`
	CreatedAt		time.Time		`json:"create_time"`
}

type LogTask struct {
	ID 				int				`gorm:"primary_key"`
	UserName  		string			`gorm:"size:64;not null"`
	TaskName        string
	TaskId			string			`gorm:"not null;unique"`
	TaskType		bool			`gorm:"force"`
	Status			string			`gorm:"size:32"`
	TaskRet		 	string			`gorm:"type:mediumtext;force"`
	CreatedAt		time.Time		`json:"create_time"`
}